package com.tid.hbasees.model;


import com.tid.hbasees.utils.hbase.HBaseHelper;

import java.util.List;

public class Node {

    private String nodeId;

    private long time;

    private String belongNetCode;

    private String nodeName;

    private double dLong;

    private double dLat;

    private double height;

    private String nodeTypeId;

    private List<Device> devices;

    public Node() {}

    public String getRowkey() {
        return nodeId + HBaseHelper.ROWKEY_SEP + time;
    }

    public String getIndex() {
        return time + HBaseHelper.ROWKEY_SEP + nodeId;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getBelongNetCode() {
        return belongNetCode;
    }

    public void setBelongNetCode(String belongNetCode) {
        this.belongNetCode = belongNetCode;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public double getdLong() {
        return dLong;
    }

    public void setdLong(double dLong) {
        this.dLong = dLong;
    }

    public double getdLat() {
        return dLat;
    }

    public void setdLat(double dLat) {
        this.dLat = dLat;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getNodeTypeId() {
        return nodeTypeId;
    }

    public void setNodeTypeId(String nodeTypeId) {
        this.nodeTypeId = nodeTypeId;
    }

    public List<Device> getDevices() {
        return devices;
    }

    public void setDevices(List<Device> devices) {
        this.devices = devices;
    }
}
